<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="商品全生命周期" name="first" :lazy="true">
        <cycleProduct></cycleProduct>
      </el-tab-pane>
      <el-tab-pane label="人员全生命周期" name="secord" :lazy="true">
        <personCycle></personCycle>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import cycleProduct from './cycleProduct.vue'
import personCycle from './personCycle.vue'
export default {
  data() {
    return {
      activeName: 'first'
    };
  },
  components:{
    cycleProduct,
    personCycle
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
};
</script>
